]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
panel: Use a constant for the panel startup animation time
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 3 Mar 2011 16:34:14 +0000 (17:34 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 3 Mar 2011 21:43:35 +0000 (22:43 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=643804

js/ui/panel.js

index 1d1e10d6038b7fcbabfc8289d0fc9a91e85ca8bc..37a720e1f8fb2def8ddb114eb51d4001ddbc3fae 100644 (file)
@@ -25,6 +25,8 @@ const PANEL_HEIGHT = 26;
 
 const PANEL_ICON_SIZE = 24;
 
+const STARTUP_ANIMATION_TIME = 0.2;
+
 const HOT_CORNER_ACTIVATION_TIMEOUT = 0.5;
 
 const BUTTON_DND_ACTIVATION_TIMEOUT = 250;
@@ -1046,7 +1048,7 @@ Panel.prototype = {
         this.actor.y = oldY - this.actor.height;
         Tweener.addTween(this.actor,
                          { y: oldY,
-                           time: 0.2,
+                           time: STARTUP_ANIMATION_TIME,
                            transition: 'easeOutQuad'
                          });
     },